package com.bytedance.frameworks.baselib.network.http.c.a.a;

import com.bytedance.retrofit2.Converter;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

public final class a extends Converter.Factory {
    private final com.google.gson.Gson a;

    private a(Gson arg1) {
        this.a = arg1;
    }

    public static a a() {
        return new a(new Gson());
    }

    public final Converter a(Type arg3) {
        return new com.bytedance.frameworks.baselib.network.http.c.a.a.b(this.a.getAdapter(TypeToken.get(arg3)));
    }

    public final Converter responseBodyConverter(Type type, Annotation[] annotations) {
        return new com.bytedance.frameworks.baselib.network.http.c.a.a.c(this.a.getAdapter(TypeToken.get(type)));
    }
}

